/**
 * Created by liudeyong on 2017/8/2.
 */

// 访问Java类Thread
var Thread = Java.type("java.lang.Thread");

// 带有run方法的子类
var MyThread = Java.extend(Thread, {
    run: function() {
        print("Run in separate thread");
    }
});
var th = new MyThread();
th.start();
th.join();